package cn.brian.modular.sys.service;

import org.drools.core.base.RuleNameStartsWithAgendaFilter;
import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserService {
    @Autowired
    KieBase kieBase;
    public void save(){
        KieSession kieSession= kieBase.newKieSession();
        kieSession.fireAllRules(new RuleNameStartsWithAgendaFilter("rule_rhs_"));
        kieSession.dispose();
    }
}
